package com.sunny.shop.dto;

import com.sunny.shop.validators.PasswordEqual;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;

@Getter
@Setter
@PasswordEqual
public class PersonDTO {
    @Length(min = 1)
    private String name;
    private Integer age;
    private String password1;
    private String password2;
    @Valid
    private SchoolDTO schoolDTO;
//    public String getName() {
//        return name;
//    }
//
//    public void setName(String name) {
//        this.name = name;
//    }
//
//    public int getAge() {
//        return age;
//    }
//
//    public void setAge(int age) {
//        this.age = age;
//    }
}
